<?php $form = $this->beginWidget('CActiveForm')?>
<?php echo $form->errorSummary($model) ?>

<div class="row">
    <?php echo $form->label($model, 'cid')?>
    <?php echo $form->dropDownList($model, 'cid', CHtml::listData(NCategory::model()->findAll(), 'id', 'name'))?>
</div>
<div class="row">
    <?php echo $form->label($model, 'name')?>
    <?php echo $form->textField($model, 'name')?>
</div>
<div class="row">
    <?php echo $form->label($model, 'url')?>
    <?php echo $form->textField($model, 'url')?>
</div>
<div class="row">
    <?php echo $form->label($model, 'ord')?>
    <?php echo $form->textField($model, 'ord')?>
</div>
<div class="buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Update')?>
</div>

<?php $this->endWidget()?>